package com.shylock.as.service.impl;

import com.shylock.as.dao.SmsLogDao;
import com.shylock.as.entity.SmsLog;
import com.shylock.as.service.intf.SmsLogService;
import com.shylock.common.util.RUtils;
import com.shylock.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class SmsLogServiceImpl implements SmsLogService {
    @Autowired
    SmsLogDao dao;
    @Override
    public R save(SmsLog log) {
        if(dao.insert(log)>0){
            return RUtils.ok("ok");
        }else {
            return RUtils.fail("操作失败");
        }
    }

    @Override
    public R query(String phone) {
        return null;
    }
}
